package br.com.escolaespacocrianca.fineec.model;


import javax.persistence.Entity;
import javax.persistence.OneToOne;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@Entity
public class Sponsor extends BaseEntity  {

	private String name;
	private PersonalDocuments documents;
	private String email;
	private String occupation;
	private String companyName;
	
	@OneToOne
	@Cascade(value={CascadeType.ALL})
	private Address address;
	
	@OneToOne
	@Cascade(value={CascadeType.ALL})
	private PhoneNumberInfo phoneInfoPrimary; 	
	
	@OneToOne
	@Cascade(value={CascadeType.ALL})
	private PhoneNumberInfo phoneInfoSecundary; 	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public PersonalDocuments getDocuments() {
		return documents;
	}
	public void setDocuments(PersonalDocuments documents) {
		this.documents = documents;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getOccupation() {
		return occupation;
	}
	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public PhoneNumberInfo getPhoneInfoPrimary() {
		return phoneInfoPrimary;
	}
	public void setPhoneInfoPrimary(PhoneNumberInfo phoneInfoPrimary) {
		this.phoneInfoPrimary = phoneInfoPrimary;
	}
	public PhoneNumberInfo getPhoneInfoSecundary() {
		return phoneInfoSecundary;
	}
	public void setPhoneInfoSecundary(PhoneNumberInfo phoneInfoSecundary) {
		this.phoneInfoSecundary = phoneInfoSecundary;
	}
}
